﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Index.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="User_Login" %>

<%@ Register Assembly="SuperAuthenticationCode" Namespace="SuperAuthenticationCode.ServerControl"
    TagPrefix="cc2" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
     .bluebutton
    {
	    background-image:url(../skin/images/bluebtn.png);
	    background-repeat:no-repeat;
	    cursor:hand;
	    width:70px;
	    height:25px;
    }
    .titleinput
    {
	    border-style:inset;
	    border-width:1px;
	    width:140px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="centercontent" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="block">
    <div class="blockBar">用户登录</div>
    <div class="blockList">
    <table style="width:100%">
        <tr>
            <td style="width:60%;text-align:right">
                用户名：<asp:TextBox ID="NameBox" runat="server" AutoPostBack="true" 
                    ontextchanged="NameBox_TextChanged" CssClass="titleinput"></asp:TextBox>
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <span style="color:red"><asp:Literal ID="vname" runat="server"></asp:Literal></span>
                </ContentTemplate>
                    <triggers>
                        <asp:AsyncPostBackTrigger ControlID="NameBox" EventName="TextChanged" />
                    </triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td style="text-align:right">
                密 码：<asp:TextBox ID="PwdBox" runat="server" 
                    ontextchanged="PwdBox_TextChanged" AutoPostBack="true" 
                    CssClass="titleinput" TextMode="Password"></asp:TextBox>
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
                    <font style="color:Red"><asp:Literal ID="pwdlit" runat="server"></asp:Literal></font>
                </ContentTemplate>
                    <triggers>
                        <asp:AsyncPostBackTrigger ControlID="PwdBox" EventName="TextChanged" />
                    </triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td style="text-align:right">
                验证码：<asp:TextBox 
                            ID="CodeBox" runat="server" CssClass="titleinput" AutoPostBack="true" 
                            Width="70px" ontextchanged="TextBox1_TextChanged"></asp:TextBox>
            </td>
            <td>
                <cc2:AuthenticationCode ID="AuthenticationCode1" runat="server" name="code" 
                            BackColor="White" CodeColorMode="GRADIENT_COLOR" CodeFontSizeMode="SIZE_FIXED" 
                            ContentField="DIGIT_ONLY" ExpireTime="300" ForeColor="White" Height="30px" 
                            NoiseMode="NONE" Width="70px">
                </cc2:AuthenticationCode>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <span style="color:red"><asp:Literal ID="validatelit" runat="server"></asp:Literal></span>
                    </ContentTemplate>
                    <triggers>
                        <asp:AsyncPostBackTrigger ControlID="CodeBox" EventName="TextChanged" />
                    </triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td style="text-align:center">
                <asp:Button ID="Button1" runat="server" BorderStyle="None" 
                    CssClass="bluebutton" Text="登录" onclick="Button1_Click" />
            </td>
            <td>
                没有帐号？<asp:Button ID="Button2" runat="server" Text="注册" BorderStyle="None" 
                    CssClass="bluebutton" onclick="Button2_Click" />
            </td>
        </tr>
    </table>
    </div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftSideBar" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="rightsidebar" Runat="Server">
</asp:Content>

